using Microsoft.EntityFrameworkCore;

namespace mvc5blog.Models;
public class BlogDbContext : DbContext
{

    public DbSet<Blog> Blogs { get; set; }

    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
    {
        optionsBuilder.UseSqlServer(@"Server=ACODE-QEOKYZXYN\SQLEXPRESS;database=blogss;uid=sa;pwd=123456;TrustServerCertificate=true;");
        base.OnConfiguring(optionsBuilder);
    }
}